<?php
/**
 * 数组转json
 * User: Administrator
 * Date: 2017/12/6
 * Time: 15:02
 */
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
echo json_encode($arr);
?>